package com.wzdigit.wms.hm.service.hm.impl;
/*
 * @Author:yangwenbiao
 * @Date 2021/5/19 3:45 PM
 * @version 1.0
 */

import com.wzdigit.wms.hm.client.req.SnListRequest;
import com.wzdigit.wms.hm.client.resp.StackingResult;
import com.wzdigit.wms.hm.service.hm.PalletizerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

@Component
@WebService(name = "PalletizerService",
        targetNamespace = "http://impl.hm.service.hm.wms.wzdigit.com",
        endpointInterface = "com.wzdigit.wms.hm.service.hm.PalletizerService")
public class PalletizerServiceImpl implements PalletizerService {

    @Autowired
    HackingMachineServiceImpl hackingMachineService;

    @Override
    public StackingResult Stacking(SnListRequest input) {

//        Result<Integer> result = hackingMachineService.palletizerSnReceive(input);
        StackingResult stackingResult = hackingMachineService.palletizerSnReceive(input);
        return stackingResult;
//        return result;
    }
}
